package ratemymacclass

class Rating {

    String title
    int workload
    int easiness
    int useful
    int learning
    String year
    String major
    boolean forMajor
    boolean preceptor
    Professor professor
    String comment
    boolean recommend

    static belongsTo = [
         course: Course
    ]

    static constraints = {
        course()
        title()
        workload()
        easiness()
        useful()
        learning()
        preceptor()
        professor()
        year(nullable: true)
        major()
        forMajor()
        comment(nullable: true, maxSize: 5000)
        recommend()
    }
}
